<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <css file="__PUBLIC__/css/category.css"/>
        <jsconst/>
        <jquery/>
        <js file='__PUBLIC__/js/category.js'/>
    </head>
    <body>
        <h2 class='add_top'>
            <a href="{|U('addshow')}">添加顶级栏目</a>
        </h2>
        <div class='add_list'>
        <table class="table1">
            <thead>
                <tr>
                    <th width="10%">CID</th>
                    <th width="10%">PID</th>
                    <th width='38%'>栏目名称</th>
                    <th width='10%'>文章数量</th>
                    <th  width="30%">操作</th>
                </tr>
            </thead>
            <tbody>
                <list from="$data" name="n">
                    <tr>
                        <td>{$n.cid}</td>
                        <td>{$n.pid}</td>
                        <td>{$n.catname}</td>
                        <td>0</td>
                        <td>
                            <a href="__CONTROL__/addshow1/cid/{$n.cid}">添加子栏目</a> |
                            <a href="__CONTROL__/editshow/cid/{$n.cid}">编辑栏目</a> |
                            <a href="{|U('arc/addshow',array('cid'=>$n['cid']))}">添加文章</a> |
                            <a href="javascript:;" cid='{$n.cid}' class='delcategory'>删除栏目</a>
                        </td>
                    </tr>
                </list>
            </tbody>
        </table>
    </div>
    <div class='page'>{$page}</div>
    </body>
</html>
